<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>闭包</title>
</head>

<body>
    <div>

    </div>

</body>
<script>
  //编写一个函数add(3)(4)(5)得到的结果为12
  function  add(x){
        return function(y){
                return  function(z){
                    alert(x+y+z);
                }
        }
  }
  add(3)(4)(5)

</script>

</html>